package com.woniuxy.service;

import com.woniuxy.entity.Doctor;
import com.woniuxy.entity.DoctorAndDepartment;
import com.woniuxy.entity.PageBean;

import java.util.List;

public interface DoctorService {

    void addDoctor(Doctor doctor);

    void removeDoctor(int doctorId);

    void updateDoctor(Doctor doctor);

    PageBean<Doctor> getAllDoctors(Doctor doctor, int pageIndex, int pageSize);

    //用id查询医生姓名和科室
    DoctorAndDepartment selectDoctorMessageById(int doctorId);

    //查询指定科室的医生
    List<Doctor> selectByDepartments(String departmentsName);

    //用名字查询医生id
    Doctor selectDoctorByName(String doctorName);

}
